package com.burstly.lib.component.networkcomponent.burstly.html.ormma.listener;

import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import com.burstly.lib.component.networkcomponent.burstly.html.ormma.OrmmaLocationController;

public class LocListener
  implements LocationListener
{
  private LocationManager mLocMan;
  private OrmmaLocationController mOrmmaLocationController;
  private String mProvider;

  public LocListener(Context paramContext, int paramInt, OrmmaLocationController paramOrmmaLocationController, String paramString)
  {
    this.mOrmmaLocationController = paramOrmmaLocationController;
    this.mLocMan = ((LocationManager)paramContext.getSystemService("location"));
    this.mProvider = paramString;
  }

  public void onLocationChanged(Location paramLocation)
  {
    this.mOrmmaLocationController.success(paramLocation);
  }

  public void onProviderDisabled(String paramString)
  {
    this.mOrmmaLocationController.fail();
  }

  public void onProviderEnabled(String paramString)
  {
  }

  public void onStatusChanged(String paramString, int paramInt, Bundle paramBundle)
  {
    if (paramInt == 0)
      this.mOrmmaLocationController.fail();
  }

  public void start()
  {
    this.mLocMan.requestLocationUpdates(this.mProvider, 0L, 0.0F, this);
  }

  public void stop()
  {
    this.mLocMan.removeUpdates(this);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.ormma.listener.LocListener
 * JD-Core Version:    0.6.2
 */